home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / graphic / tweak16b.zip / SCREEN.HPP < prev    next >
C/C++ Source or Header  |  1993-11-25  |  1KB  |  50 lines

  1. /*
  2.     Screen.HPP version 1.0
  3.     by Robert Schmidt of Ztiff Zox Softwear 1993
  4.  
  5.     Declares some primitives for handling the screen, some screen
  6.         buffer pointers, and the functions that handle the single
  7.         temporary screen used in TWEAK.
  8.  
  9.     See Screen.CPP for definitions and documentation.
  10. */
  11.  
  12. #ifndef _Screen_HPP
  13. #define _Screen_HPP
  14.  
  15. #include <mem.h>
  16.  
  17. #define    REGENABLE_COLOR        0x0e
  18. #define REGDISABLE_COLOR    0x07
  19. #define CURSOR_COLOR        0x0f
  20. #define BITHEADER_COLOR        0x04
  21. #define BITPATTERN_COLOR    0x0c
  22. #define TESTHEADER_COLOR    0x09
  23. #define TESTSTRING_COLOR    0x0b
  24. #define PROMPT_COLOR        0x0a
  25. #define ERROR_COLOR            0x8d
  26. #define HELP_COLOR            0x4f
  27. #define INFO_COLOR            0x0f
  28.  
  29. extern unsigned editMode, editHeight, editWidth, editSize;
  30.  
  31. extern unsigned *textScr;
  32. extern char *graphScr;
  33.  
  34. int getBiosMode(void);
  35. void setBiosMode(int);
  36. void preparePalettes();
  37. void setPalette16();
  38. void setPalette256();
  39.  
  40. class    tempBuffer
  41.     {
  42.     unsigned *link, *temp;
  43. public:
  44.     tempBuffer(unsigned *l)    { link = l; temp = NULL; }
  45.     ~tempBuffer()            { if (temp) delete[] temp; }
  46.     void save(void);
  47.     void restore(void);
  48.     };
  49.  
  50. #endif